<template>
  <div class="wrapper">
    <img src="http://www.dell-lee.com/imgs/vue3/user.png" alt="" class="wrapper__img">
    <div class="wrapper__input">
      <input type="text" class="wrapper__input__content" placeholder="请输入手机号">
    </div>
    <div class="wrapper__input">
      <input type="password" class="wrapper__input__content" placeholder="请输入密码">
    </div>
    <div class="wrapper__input">
      <input type="password" class="wrapper__input__content" placeholder="请输入确认密码">
    </div>
    <div class="wrapper__register-button" @click="handleRegister">注册</div>
    <div class="wrapper__login-button" @click="handleLogin">立即登录</div>
  </div>
</template>

<script setup>
import { } from "vue"
import { useRouter } from 'vue-router'
const router = useRouter()
const handleRegister = () => {
  localStorage.isLogin = true
  router.push({ name: 'Home' })
}
const handleLogin = () => {
  router.push({ name: 'Login' })
}

</script>

<style lang="scss" scoped>
@import '../../css/variables.scss';

.wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);

  &__img {
    display: block;
    margin: 0 auto 0.4rem auto;
    width: 0.66rem;
    height: 0.66rem;
  }

  &__input {
    height: 0.48rem;
    margin: 0 0.4rem 0.16rem 0.4rem;
    padding: 0 0.16rem;
    background-color: #F9F9F9;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 6px;

    &__content {
      width: 100%;
      height: 0.46rem;
      border: none;
      outline: none;
      background-color: none;
      font-size: 0.16rem;
      color: $content-notice-fontcolor;

      &::placeholder {
        color: $content-notice-fontcolor;
      }
    }
  }

  &__register-button {
    margin: 0.32rem 0.4rem 0 0.4rem;
    line-height: 0.48rem;
    text-align: center;
    font-size: 0.16rem;
    background-color: btn-bgColor;
    box-shadow: 0 0.04rem 0.08rem 0 rgba(0, 145, 255, 0.32);
    border-radius: 0.04rem;
    color: $bgColor;
  }

  &__login-button {
    margin: 0.16rem;
    font-size: 0.14re;
    color: $content-notice-fontcolor;
    text-align: center;
  }
}
</style>
